const sort = (array, sortKey) => {
    return array.sort((a, b) => {
        if (a[sortKey] > b[sortKey]) {
            return 1
        }
        if (a[sortKey] < b[sortKey]) {
            return -1
        }
        return 0
    })
}

export {
    sort
}